package com.ruoyi.accountant.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class TransactionDetail {
    private Long tid;
    private String dtype;
    private Date transactionDate;
    private Date proofDate;
    private Long ofReason;
    private BigDecimal money;
    private Long ofAccount;
    private Date predictDate;
    private String object;
    private String comment;
    private String tag;
    private BigDecimal tax;
    private String invoice;
    private String attachment;
    private Integer deleted;
    private Long ofDevice;
    private Long inAccount;
    private Date createtime;
    private Integer ofCurrency;
    private Long accountDetailId;
    private Long reasonDetailId;
    private BigDecimal mainCurrencyMoney;
    private Double taxRate;
    private Date deletedDate;
    private Double serviceCharge;
    private String taxRateType;
    private Integer inCurrency;
    private Double inServiceCharge;
    private Long iid;
    private Integer finished;
    private Integer withDeposit;
    private Long depositId;
    private Long ofCompany;

    private Account ofAccountObject; //所属账户
    private Reason ofReasonObject; // 所属原因
    private Account inAccountObject; // 收入账户
    private Currency inCurrencyObject; // 收入币种类型
    private Currency ofCurrencyObject; // 所属币种类型
}